import javax.swing.JApplet;

import java.awt.Color;
import java.awt.Graphics;


public class app1 extends JApplet {

    /**
	 * Create the applet.
	 */
	public app1() {

	}

	String hw_text ;
	
	public void init () {
		hw_text = "Hello World";
	}
	
	public void paint(Graphics g) {
		g.drawString (hw_text , 25, 25) ;
		
		g.setColor(Color.blue);
		g.drawLine(25, 100, 125, 100); 
		
		g.setColor(Color.red);
		g.drawRect(30, 50, 130, 50);
		
		g.setColor(Color.green);
		g.drawRoundRect(40, 60, 130, 50, 20, 20);
		
		g.setColor(Color.black);
		g.drawOval(25, 25, 160, 60);
	}
}
